﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AP.LUNA.DataAccess;
using AP.LUNA.DataEntities;

namespace AP.LUNA.BusinessLogic
{
    public class BLPeriodos : BLAstract, IBusinessLogic<periodos>
    {
        private LunaEntities context = null;
        public BLPeriodos()
        {
            context = GetContext();
        }
        public List<periodos> GetAll()
        {
            int ano = DateTime.Today.Year;
            return context.periodos.Where(p => p.Ano == ano).ToList();
        }

        public periodos GetbyId(int id)
        {
            throw new NotImplementedException();
        }

        public periodos GetbyId(Guid id)
        {
            throw new NotImplementedException();
        }

        public void Save(periodos entidad)
        {
            throw new NotImplementedException();
        }

        public void Update(periodos entidad)
        {
            throw new NotImplementedException();
        }

        public void Delete(periodos entidad)
        {
            throw new NotImplementedException();
        }
    }
}
